home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / checkbox-gtk.postrm < prev    next >
Text File  |  2009-11-06  |  641b  |  27 lines

  1. #! /bin/sh -e
  2.  
  3. name=`basename $0 .postrm`
  4. base=`echo $name | cut -d "-" -f "1"`
  5. file="/etc/$base.d/$name.ini"
  6.  
  7. case "$1" in
  8.     purge)
  9.         # mimic dpkg as closely as possible, so remove configuration
  10.         # files with dpkg backup extensions too:
  11.         for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
  12.             rm -f $file$ext
  13.         done
  14.  
  15.         # remove the configuration file itself
  16.         rm -f $file
  17.         ;;
  18.     remove|disappear|upgrade|failed-upgrade|abort-install|abort-upgrade)
  19.         ;;
  20.     *)
  21.         echo "$0: didn't understand being called with \`$1'" 1>&2
  22.         exit 0
  23.         ;;
  24. esac
  25.  
  26.  
  27.